package com.mvp.shq.washer.ui.news;

import com.mvp.shq.washer.base.BaseModel;
import com.mvp.shq.washer.base.BasePresenter;
import com.mvp.shq.washer.base.BaseView;
import com.mvp.shq.washer.entity.BaseResult;
import com.mvp.shq.washer.entity.MessageBean;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2017/8/24.
 */

public interface NewsConstract {
    interface Model extends BaseModel{
        Observable<BaseResult<List<MessageBean>>> getMessages(String token,String userId);
    }
    interface View extends BaseView {
        void msgSuccess(List<MessageBean> messages);
        void msgFail(String msg);
    }
    public abstract class Presenter extends BasePresenter<Model,View>{
        abstract void getMsgs();
    }
}
